package com.carol.lmsbe.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carol.lmsbe.dto.*;

import java.util.List;

/**
 * 设备申请服务接口
 */
public interface EquipmentApplicationService {

    /**
     * 分页查询设备申请列表
     */
    Page<EquipmentApplicationDTO> listApplications(EquipmentApplicationQueryRequest request);

    /**
     * 根据ID获取设备申请详情
     */
    EquipmentApplicationDTO getApplicationById(Long id);

    /**
     * 创建设备申请
     */
    EquipmentApplicationDTO createApplication(EquipmentApplicationRequest request);

    /**
     * 更新设备申请
     */
    EquipmentApplicationDTO updateApplication(EquipmentApplicationUpdateRequest request);

    /**
     * 删除设备申请
     */
    void deleteApplication(Long id);

    /**
     * 审批设备申请
     */
    EquipmentApplicationDTO approveApplication(EquipmentApplicationApprovalRequest request);

    /**
     * 获取我的申请列表
     */
    Page<EquipmentApplicationDTO> getMyApplications(EquipmentApplicationQueryRequest request);

    /**
     * 获取待审批申请列表
     */
    Page<EquipmentApplicationDTO> getPendingApplications(EquipmentApplicationQueryRequest request);

    /**
     * 批量删除申请
     */
    void batchDeleteApplications(List<Long> ids);

    /**
     * 导出申请数据
     */
    byte[] exportApplicationData(EquipmentApplicationQueryRequest request);
}
